package com.dz.content.domain.repository;

import com.dz.content.domain.entity.Content;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.querydsl.QuerydslPredicateExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ContentRepository extends JpaRepository<Content,Long>, QuerydslPredicateExecutor<Content> {
    Content findByIdAndDeleteFlag(Long id,Integer delete_flag);

    List<Content> findByCategoryIdAndDeleteFlag(Long categoryId,Integer delete_flag);
}
